
(function () {
Codestrong.ui.createAboutMain = function () {
       
        
    var url_about,aps='',url_product,url_partner;
	 if(Codestrong.isAndroid()) {
	 	Titanium.include('../globals.js');
	 	url_about='../pages/about.html';
	 	url_product='../pages/product.html';
	 	url_partner='../pages/partner.html';
	 	aps='../';
	 }
    else{
    	Titanium.include('globals.js');
    	url_about='pages/about.html';
    	url_product='pages/product.html';
	 	url_partner='pages/partner.html';
    } 	
    var win = Titanium.UI.createWindow({
            id: 'AboutMain',
            title: 'THÔNG TIN',
            backgroundColor: '#FFF',
            barColor: '#414444',
            fullscreen: false,
          //  navBarHidden: false,
    });
    
    var egc = new globals.EventGarbageCollection(win);
	
	egc.addEventListener('back_AboutMain', function () {
 		Codestrong.navGroup.close(win, {
                        animated: true
        });
	});
  
	////////////main_header///////////////////////////
	 var databutton_right=[
    	//{Id:1,Image:aps+'images/list_bullets.png',Image_:aps+'images/list_bullets_.png',tag:'Category'},
	   // {Id:2,Image:aps+'images/account.png',Image_:aps+'images/account_.png',tag:'Login'},
	    //{Id:3,Image:aps+'images/search.png',Image_:aps+'images/search_.png',tag:'Search'},
	    
	]
	var main_header=require('controls/main_header').main_header({
	 		backgroundImage: aps+'images/panel3.png',
	 		headertext:'Thầy trò Mobile: Thông tin',
		    left: 0,
		    top: 0,
		    height:65,
		    width: Globals.platformWidth,
		    touchEnabled: true		,
		      databutton_right:databutton_right,
		    imback:   aps+'images/back.png',
		    imback_:   aps+'images/back_.png',
		    idWinParent:'AboutMain',
		    
    })

	win.add(main_header);
        
        
    var data = [
    	{
            title: 'Về chúng tôi',
            view: Ti.UI.createWebView({
            	top:0,
                url: 'http://lhs.com.vn/about.html',//url_about
            })
    	},
    	{
            title: 'Sản phẩm',
            view: Ti.UI.createWebView({
            	top:0,
                url: 'http://lhs.com.vn/product.html'
            })
    	},
    	{
            title: 'Đối tác - Khách hàng',
            view: Ti.UI.createWebView({
            	top:0,
                url: 'http://lhs.com.vn/partner.html'
            })
    	}
    	
    ];
    
    win.add(Codestrong.ui.createTabbedScrollableView({
    	data:data,
    	top:main_header.height
    	})
    );
    
    
    
     if (Ti.Network.online) {
		
	 }
	 else
	 {
	  	   require('settings').createAlertConnectError();
	 }
    
    
    
    
    
    return win;
    };
})();